001 /* EVolve - an Extensible Software Visualization Framework
002 * Copyright (C) 2001-2002 Qin Wang
003 *
004 * This library is free software; you can redistribute it and/or
005 * modify it under the terms of the GNU Library General Public
006 * License as published by the Free Software Foundation; either
007 * version 2 of the License, or (at your option) any later version.
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Library General Public License for more details.
013 *
014 * You should have received a copy of the GNU Library General Public
015 * License along with this library; if not, write to the
016 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
017 * Boston, MA 02111-1307, USA.
018 */
019
020 /*
021 * EVolve is distributed at http://www.sable.mcgill.ca/EVolve/
022 */
023
024 package EVolve.data;
025
026 /**
027 * Event builder.
028 */
029 public class EventBuilder extends ElementBuilder {
030 /**
031 * Creates an event builder.
032 *
033 * @param eventName name of the events
034 * @param eventDescription description of the events
035 */
036 public EventBuilder(String eventName, String eventDescription) {
037 super(eventName, eventDescription);
038 }
039
040 /**
041 * Builds the element definition.
042 *
043 * @return the element definition
044 */
045 public EventDefinition buildDefinition() {
046 return super.buildEventDefinition();
047 }
048
049
050 /**
051 * Starts building new event.
052 */
053 public void newEvent() {
054 super.newEvent();
055 }
056
057 /**
058 * Starts building new event.
059 */
060 public void newEvent(boolean isOptional) {
061 super.newEvent(isOptional);
062 }
063
064 /**
065 * Builds the event.
066 *
067 * @return the event
068 */
069 public Event buildEvent() {
070 return super.buildEvent();
071 }
072 }